package com.dzl.goods.dao;

import com.dzl.goods.pojo.WelfareGoodsAttrGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.util.List;

/**
 * 商品属性组表(WelfareGoodsAttrGroup)表数据库访问层
 * @author ChenLong
 * @date 2021-05-29 19:20:06
 */
@Repository
public interface WelfareGoodsAttrGroupMapper extends BaseMapper<WelfareGoodsAttrGroup> {

    /**
     * 根据分组id列表删除规格组
     * @author ChenLong
     * @date 2021-05-31 18:40:55
     * @param list 分组id列表
     * @return int
     **/
    int deleteGoodsAttrGroupByGroupId(@Param("list") List<Integer> list);

    /**
     * 批量新增所有列，列表长度不能为0，且列表id统一为null或者统一不为null
     * @param list 实例对象list集合
     * @return 影响行数
     */
    int insertGoodsAttrGroupList(@Param("list") List<WelfareGoodsAttrGroup> list);
}
